<div class="portlet">
  <div class="portlet-header">
    <h1><%=t ".title"%></h1>
  </div>

  <div class="portlet-content">
      <table>
        <tbody>
          <tr>
            <td> <%= label_tag t('activerecord.attributes.user.email') %> </td>
            <td> <%= h @localuser.email %> </td>
          </tr>
          <tr>
            <td> <%= label_tag t('activerecord.attributes.user.roles') %> </td>
            <td>
              <% for role in User::ROLES %>
               <%= check_box_tag "user[roles][]", role, @localuser.roles.include?(role), :disabled => true %>
               <%= h t(role) %>
              <% end %>
              <%= hidden_field_tag "user[roles][]"%>
            </td>
          </tr>
        </tbody>
      </table>
      <div class="line-links">
        <%= link_to t('btn_edit'), edit_localuser_path(@localuser) %> |
        <%= link_to t('btn_back'), localusers_redirect_back_path(localusers_path) %>
      </div>
  </div>

  <div class="portlet-footer">
  </div>
</div>


